package com.qyc.service;

import com.qyc.dto.AddOrUpDateDiseaseRecordDTO;
import com.qyc.pojo.DiseaseRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qyc.utils.ResponseResult;

import java.util.List;

/**
* @author qinyc
* @description 针对表【disease_record(疾病记录表)】的数据库操作Service
* @createDate 2023-06-26 12:14:34
*/
public interface DiseaseRecordService extends IService<DiseaseRecord> {

    /**
     * @Author qinyc
     * @Description  新增或更新病症记录
     * @version: v1.0
     * @Date 13:24 2023/6/26
     **/
    ResponseResult saveOrUpdate(AddOrUpDateDiseaseRecordDTO addOrUpDateDiseaseRecordDTO);

    /**
     * @Author qinyc
     * @Description  根据记录ID删除病症记录
     * @version: v1.0
     * @Date 13:32 2023/6/26
     **/
    ResponseResult deleteById(Integer drId);

    /**
     * @Author qinyc
     * @Description  批量删除病症记录
     * @version: v1.0
     * @Date 13:45 2023/6/26
     **/
    ResponseResult deleteByIdAll(List<Integer> drIds);
}
